package com.qlslylq.ad.sdk.core.rsp;

import com.qlslylq.ad.sdk.enums.AdPlatformEnum;
import com.qlslylq.ad.sdk.enums.AdType;

/**
 * created by qlslylq <br/>
 * on 2022/1/17 <br/>
 */
public class AdError {

    private AdPlatformEnum platform;

    private AdType adType;

    private int code;

    private String msg;

    private AdError(AdPlatformEnum platform, AdType adType, int code, String msg) {
        this.platform = platform;
        this.adType = adType;
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public AdPlatformEnum getPlatform() {
        return platform;
    }

    public AdType getAdType() {
        return adType;
    }

    public static AdError build(AdPlatformEnum platform, AdType adType, int code, String msg) {
        return new AdError(platform, adType, code, msg);
    }

}
